<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        //导入导出
        // export default 进行导出 通过import进行引入   我们叫做默认导出，一个文件只能有一个export default
        //export 进行导出 import进行引入    我们叫做命名导出  可以写多个
    </script>

    <script type="module">
        import one from './one.js';
        import {myage as aage,fun2,quchong} from './one.js'
        

        console.log(one.myName);
        one.fun()
        console.log(aage,'aage')
        console.log(fun2())

        // 去重
        const arr = [11,22,33,22,33,55]
        var newArr = quchong(arr)
        console.log(newArr,'newArr')
    </script>
</body>
</html>